<?php 
	include_once 'thuvienham.php';
	include_once 'giaovien_db.php';

	class giaovien_bs 
	{
		//------------------Fields [10]------------------
			// #0
		private $MaGiaoVien = "";
		public function SetMaGiaoVien($MaGiaoVien) { $this->MaGiaoVien = $MaGiaoVien; }
		public function GetMaGiaoVien()            { return $this->MaGiaoVien;        }
			// #1
		private $MaChucVu = "";
		public function SetMaChucVu($MaChucVu)     { $this->MaChucVu = $MaChucVu;     }
		public function GetMaChucVu()              { return $this->MaChucVu;          }
			// #2
		private $HoTen = "";
		public function SetHoTen($HoTen)           { $this->HoTen = $HoTen;           }
		public function GetHoTen()                 { return $this->HoTen;             }
			// #3
		private $NgaySinh = "0000-00-00";
		public function SetNgaySinh($NgaySinh)     { $this->NgaySinh = $NgaySinh;     }
		public function GetNgaySinh()              { return $this->NgaySinh;          }
			// #4
		private $GioiTinh = -1;
		public function SetGioiTinh($GioiTinh)     { $this->GioiTinh = $GioiTinh;     }
		public function GetGioiTinh()              { return $this->GioiTinh;          }
			// #5
		private $DiaChi = "";
		public function SetDiaChi($DiaChi)         { $this->DiaChi = $DiaChi;         }
		public function GetDiaChi()                { return $this->DiaChi;            }
			// #6
		private $DienThoai = "";
		public function SetDienThoai($DienThoai)   { $this->DienThoai = $DienThoai;   }
		public function GetDienThoai()             { return $this->DienThoai;         }
			// #7
		private $Email = "";
		public function SetEmail($Email)          { $this->Email = $Email;           }
		public function GetEmail()                { return $this->Email;             }
			// #8
		private $MatKhau = "";
		public function SetMatKhau($MatKhau)       { $this->MatKhau = $MatKhau;       }
		public function GetMatKhau()               { return $this->MatKhau;           }
			// #9
		private $PIN = "";
		public function SetPIN($PIN)               { $this->PIN = $PIN;               }
		public function GetPIN()                   { return $this->PIN;               }

		//------------------Method------------------
		public function Them()
		{
			$data = new giaovien_db();
			return $data->Them($this->MaGiaoVien, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->GioiTinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->PIN);
		}

		public function Xoa()
		{
			$data = new giaovien_db();
			return $data->Xoa($this->MaGiaoVien);
		}

		public function CapNhat()
		{
			$data = new giaovien_db();
			return $data->CapNhat($this->MaGiaoVien, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->GioiTinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->PIN);
		}
		
		public function CapNhatMatKhau()
		{
			$data = new giaovien_db();
			return $data->CapNhatMatKhau($this->MaGiaoVien, $this->MatKhau);
		}
		
		public function CapNhatPIN()
		{
			$data = new giaovien_db();
			return $data->CapNhatPIN($this->MaGiaoVien, $this->PIN);
		}
		
		public function LayDanhSach()
		{
			$data = new giaovien_db();
			return $data->LayDanhSach($this->MaGiaoVien, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->GioiTinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->PIN);
		}
		
		public function LayDanhSachPaging($Start, $Limit)
		{
			$data = new giaovien_db();
			return $data->LayDanhSachPaging($this->MaGiaoVien, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->GioiTinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->PIN, $Start, $Limit);
		}
		
	}

